package 代码记录.Bit48天集训;

import java.util.Scanner;

/**1.骆驼命名法(编程题自己做出来了)
 * 2.单词倒排
 * @author zx
 * @create 2022-07-04 20:15
 */
public class day_44 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            String str = sc.nextLine();
            char[] arr = str.toCharArray();
            for(int i = 0;i < arr.length;i++){
                if(arr[i] == '_'){
                    arr[i + 1] = (char)(arr[i + 1] - 32);
                }
            }
            String str2 = String.valueOf(arr);
            String[] arr2 = str2.split("_");
            String res = "";
            for(int i = 0;i < arr2.length;i++){
                res += arr2[i];
            }
            System.out.println(res);
        }
    }

    public static void main2(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            String line = sc.nextLine();
            char[] str = line.toCharArray();
            for(int i = 0;i < str.length;i++){
                if(!((str[i] >= 'A' && str[i] <= 'Z') || (str[i] >= 'a' && str[i] <= 'z'))){
                    str[i] = ' ';
                }
            }
            line = String.valueOf(str);
            String[] arr = line.split(" ");
            String res = "";
            for(int i = arr.length - 1;i >= 0;i--){
                res = res + arr[i] + " ";
            }
            System.out.println(res.trim());
        }
    }

}
